import request from '@/utils/request'

// 查询用户会员卡列表
export function listSlMemberCard(query) {
  return request({
    url: '/projects/SlMemberCard/list',
    method: 'get',
    params: query
  })
}

// 查询用户会员卡详细
export function getSlMemberCard(cardId) {
  return request({
    url: '/projects/SlMemberCard/' + cardId,
    method: 'get'
  })
}

// 新增用户会员卡
export function addSlMemberCard(data) {
  return request({
    url: '/projects/SlMemberCard',
    method: 'post',
    data: data
  })
}

// 修改用户会员卡
export function updateSlMemberCard(data) {
  return request({
    url: '/projects/SlMemberCard',
    method: 'put',
    data: data
  })
}

// 删除用户会员卡
export function delSlMemberCard(cardId) {
  return request({
    url: '/projects/SlMemberCard/' + cardId,
    method: 'delete'
  })
}
